package com.snopy.logistics.controller;

import com.snopy.logistics.service.BagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author snopy
 * @version 1.0.0
 * @classname BagController
 * @description
 * @email 77912204@qq.com
 * @date 2022/06/22 12:01
 */
@RestController
@RequestMapping("mybag")
public class BagController {
    @Autowired
    private BagService bagService;
    @PostMapping("/send")
    public String send(@RequestParam("bag") String bag){
        System.out.println("---------------"+bag+"---------------");
        return bagService.sendedBag(bag);
    }
}
